package com.mdinfo.gw.door.param

import javax.validation.constraints.NotNull

/**
 * Created by Administrator on 2018/1/12.
 */
class DoorListQueryParam{
    @NotNull(message = "不能为空")
    var start:Int? = null

    @NotNull(message = "不能为空")
    var num:Int? = null

    var key:String? = null
    var deptId:Int? = null
}

class DoorAddParam{

    @NotNull(message = "不能为空")
    var doorAccessId:Int? = null

    @NotNull(message = "不能为空")
    var name:String? = null

    @NotNull(message = "不能为空")
    var devId:String? = null

    @NotNull(message = "不能为空")
    var deptId:Int? = null

    @NotNull(message = "不能为空")
    var lng:Double? = null

    @NotNull(message = "不能为空")
    var lat:Double? = null

    @NotNull(message = "不能为空")
    var accessOrderNum:Int? = null
}

class DoorModifyParam{

    @NotNull(message = "不能为空")
    var doorId:Int? = null

    @NotNull(message = "不能为空")
    var doorAccessId:Int? = null

    @NotNull(message = "不能为空")
    var name:String? = null

    @NotNull(message = "不能为空")
    var devId:String? = null

    @NotNull(message = "不能为空")
    var deptId:Int? = null

    @NotNull(message = "不能为空")
    var lng:Double? = null

    @NotNull(message = "不能为空")
    var lat:Double? = null

    @NotNull(message = "不能为空")
    var accessOrderNum:Int? = null
}

class DoorToDelParam{
    @NotNull(message = "不能为空")
    var doorId:Int? = null
}

class DoorToOpenParam{
    @NotNull(message = "不能为空")
    var doorId:Int? = null
}

class DoorToCloseParam{
    @NotNull(message = "不能为空")
    var doorId:Int? = null
}

class DoorListByDoorAccessIdParam{

    @NotNull(message = "不能为空")
    var doorAccessId: Int? = null

    @NotNull(message = "不能为空")
    var start:Int? = null

    @NotNull(message = "不能为空")
    var num:Int? = null
}